package online.misscl.lsy.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 预约订单表
 * </p>
 *
 * @author misscl
 * @since 2023/03/16 23:17
 */
@Getter
@Setter
@TableName("vaccine_appointment")
@ApiModel(value = "VaccineAppointment对象", description = "预约订单表")
public class VaccineAppointment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("订单编号")
    @TableId(value = "order_id", type = IdType.AUTO)
    private Integer orderId;

    @ApiModelProperty("预定时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("appointment_time")
    private Date appointmentTime;

    @ApiModelProperty("接种人")
    @TableField("inoculation_person")
    private String inoculationPerson;

    @ApiModelProperty("预约人ID")
    @TableField("appointment_user_id")
    private Integer appointmentUserId;

    @ApiModelProperty("价格")
    @TableField("vaccine_price")
    private Double vaccinePrice;

    @ApiModelProperty("医院ID")
    @TableField("hospital_id")
    private Integer hospitalId;

    @ApiModelProperty("预约码")
    @TableField("appointment_code")
    private String appointmentCode;

    @ApiModelProperty("疫苗ID")
    @TableField("vaccine_id")
    private Integer vaccineId;

    @ApiModelProperty("联系号码")
    private String phone;

    @ApiModelProperty("取消原因")
    @TableField("cancel_cause")
    private String cancelCause;

    @ApiModelProperty("预约中0、取消预约1、预约成功2、已核销3")
    private String state;

    @ApiModelProperty("创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @ApiModelProperty("创建者")
    @TableField(value = "create_by",fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty("更新时间")
    @TableField(value = "update_time",fill = FieldFill.UPDATE)
    private LocalDateTime updateTime;

    @ApiModelProperty("更新者")
    @TableField(value = "update_by",fill = FieldFill.UPDATE)
    private String updateBy;

    @ApiModelProperty("删除标志")
    @TableField("del_flag")
    private String delFlag;


}
